class Book < ActiveRecord::Base
  attr_accessible :authour, :category_id, :description, :image, :isbn, :name, :price, :publish_date, :publisher, :tag

  belongs_to:category
  has_many:book_instance
  validates_presence_of :name, :category_id


end
